package com.aaa.service;

import com.aaa.entity.Dept;
import com.aaa.entity.User;
import com.aaa.vo.DeptVo;
import com.aaa.vo.Result;
import com.aaa.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface DeptService extends IService<Dept> {
    public Result<List<Dept>> findAll();
    //删除
    boolean delById(Long id);

    Result<IPage<Dept>> findByConditions(Integer currentPage, Integer pageSize, DeptVo deptVo);

    boolean saveAndUpdate(Dept dept);



    //模块接口
    List<Dept> findDeptAll();
    Dept getByDeptId(Long deptId);

    String updNum(Long deptId,Integer regNumber);

}
